package com.lwt.hospital.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * @author 丁兆顺
 * @date 2020/5/19 1:13
 * @desciption
 */
public class Question {

    @TableId(type = IdType.AUTO)
    private long id;
    private long user;
    private String room;
    private long doctor;
    private String message;
    private String status;//0 寻求中，1，处理中，2结束
    private String anwser;

    @TableField(exist = false)
    private String sex;
    @TableField(exist = false)
    private int age;

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @TableField(exist = false)
    private String userName;
    @TableField(exist = false)
    private String docName;

    public String getDocName() {
        return docName;
    }

    public void setDocName(String docName) {
        this.docName = docName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", user=" + user +
                ", room='" + room + '\'' +
                ", doctor=" + doctor +
                ", message='" + message + '\'' +
                ", status='" + status + '\'' +
                ", answer='" + anwser + '\'' +
                '}';
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getUser() {
        return user;
    }

    public void setUser(long user) {
        this.user = user;
    }

    public String getRoom() {
        return room;
    }

    public void setRoom(String room) {
        this.room = room;
    }

    public long getDoctor() {
        return doctor;
    }

    public void setDoctor(long doctor) {
        this.doctor = doctor;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAnswer() {
        return anwser;
    }

    public void setAnswer(String answer) {
        this.anwser = answer;
    }
}
